#pragma once
#include "stdafx.h"
#include "BaseMessage.h"
#include <deque>
class CMsgQueue
{
public:
	CMsgQueue(void);
	~CMsgQueue(void);
	void PushMessage(CBaseMessage* pMsg);
	deque<CBaseMessage*>& GetAllMessage();
	bool Init();
	void Release(){};
private:
	CRITICAL_SECTION m_Section;
	deque<CBaseMessage*>m_queMessage;
};
